package com.love.common.feign.user;

import com.love.common.feign.user.impl.UserFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO description
 *
 * @author sunbo
 * @date 2021/5/11 上午10:24
 */
@FeignClient(name = "user", fallbackFactory = UserFeignFallbackFactory.class)
public interface UserFeign {

    @GetMapping("user/test/{name}")
    String test(@PathVariable String name);

    @GetMapping("test/{name}")
    String info(String id);

}
